package com.xyzwps.ewa

import com.xyzwps.ewa.modules.init.init
import com.xyzwps.ewa.modules.useRoutes
import com.xyzwps.ewa.plugins.configureHTTP
import com.xyzwps.ewa.plugins.configureSerialization
import io.ktor.server.application.*

fun main(args: Array<String>) {
    io.ktor.server.cio.EngineMain.main(args)
}

fun Application.module() {
    init()
    configureSerialization()
    configureHTTP()
    useRoutes()
}
